#include <iostream>
#include <sstream>
#include <string>

using namespace std;

int main( int argc, char *argv[] )
{
	int sum = 0;
	int argv_int = 0;
	cout << "argc - 1 is: " << (argc - 1) << endl << endl;


	for( int i = 1; i < argc; i++ )
	{
		istringstream iss (argv[i]);
		iss >> argv_int;

		sum += argv_int;
		cout << "argv[" << i << "] is: " << argv[i] << endl;
	}

	cout << "Serialsum of argV: " << sum;

	cin.get();
	return 0;
}